package com.app.service;

/*
  @author 阿伟
  @create 2020-11-23:15:03
  用户接口
*/


import com.app.condition.UserCondition;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.common.entity.ResponseResult;
import com.common.entity.User;
import org.springframework.web.multipart.MultipartFile;

public interface UserService extends IService<User> {

   //条件查询
   void selectUserByLimit(Page<User> page, UserCondition userCondition);

   //发送验证码
   ResponseResult sendSMS(String phone);

   //注册
   ResponseResult userRegister(String phone,String password,String nickname,String yzm);

   //通过电话获取用户ID
   String getUserId(String phone);

   //通过ID查用户
   User getUserById(String id);

   //通过手机号查订单
   ResponseResult getOrderByPhone(String phone);

   //修改密码
   ResponseResult modifyPass(String userPhone,String newpass, String yzm);

   //修改昵称
   ResponseResult modifyNickname(String nickname,String phone);

   //获取头像
   ResponseResult getHeadByPhone(String phone);

   //获取昵称
   ResponseResult getNickByPhone(String phone);

   //上传图片
   ResponseResult upload(MultipartFile multipartFile, String phone);

   //上传图片
   ResponseResult upload(MultipartFile multipartFile);

}
